This is basically
9f0e7632a6 ported over
ed1170906b which was dropped this
fix when copying things around.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1655>
const rtl = this.text_direction === Clutter.TextDirection.RTL;
const adj = this._scrollAdjustment;
const currentWorkspace = vertical || !rtl
- ? adj.value : adj.upper - adj.value;
+ ? adj.value : adj.upper - adj.value - 1;
// Single fit mode implies centered too
let x1 = 0;